DataSource.getTileDataAsync

Gets the data for the tile at the given coordinates.

Some data sources may return data multiple times. For example, [class@TileDownloader] may return data from a cache, then return updated data from the network. [signal@ShumateDataSource::received-data] is emitted each time data is received, then @callback is called after the last update.

class DataSource
void
getTileDataAsync
(
int x
,
int y
,,,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

x int

the X coordinate to fetch

y int

the Y coordinate to fetch

zoomLevel int

the Z coordinate to fetch

cancellable Cancellable

a #GCancellable

callback GAsyncReadyCallback

a #GAsyncReadyCallback to execute upon completion

userData void*

closure data for @callback

Meta